//员工信息

const express = require('express')
//创建路由模块
const router = express.Router()
//导入处理路由模块
const router_hander = require('../router_hander/employee')
//导入@escook/express-joi模块
const expressJoi = require('@escook/express-joi')
//导入schema验证规则模块
const {reg_registered_schema} = require('../schema/index')
//注册
router.post('/registered',expressJoi(reg_registered_schema),router_hander.registered)
//登录
router.post('/login',router_hander.login)
//切记要对外暴露
module.exports = router